// $codepro.audit.disable spellCheckIdentifiers
/**
 * Package domain
 */
package teamrocket.domain; // $codepro.audit.disable packagePrefixNamingConvention

import java.util.logging.Level;
import teamrocket.logging.TLogger;

//import java.util.Map;


/**
 * This class creates a SystemAdmin, which is a child of User class.
 * @author James Zhang, Juan Llanes, Stephen Tapper, Will Barr
 * @version 1.0
 */
public class SystemAdmin extends User{

	/**
	 * Field serialVersionUID.
	 * (value is -2512357297436901254)
	 */
	private static final long serialVersionUID = -2512357297436901254L;
		
	/**
	 * Field ADMINDEFPERMS.
	 * (value is "User.LOGIN + User.MODPATIENTS + User.MODTR +
			User.VIEWAPPTS + User.VIEWREPORTS + User.MODUSERS")
	 */
	private static final String ADMINDEFPERMS = 
			User.LOGIN + User.MODPATIENTS + User.MODTR +
			User.VIEWAPPTS + User.VIEWREPORTS + User.MODUSERS;
	
	/**
	 * Constructor for SystemAdmin.
	 * @param username String
	 * @param password String
	 * @param firstName String
	 * @param lastName String
	 */
	public SystemAdmin(String username, String password, String firstName,
			String lastName) {
		super(username, password, firstName, lastName, "a", SystemAdmin.ADMINDEFPERMS);
		TLogger.getInstance().getLogger().log(Level.INFO,
				"Creating new SystemAdmin " + username);
	}
}
